package cn.com.api.mapper.base;

import java.util.List;
import java.util.Map;

import org.apache.commons.io.filefilter.FalseFileFilter;
import org.apache.ibatis.annotations.*;

import cn.com.api.entity.ApiU_follow;

//DAO
public interface U_followMapperBase {

	// 根据id查看
	@Select("SELECT * FROM U_FOLLOW  WHERE ID = #{ID}")
	public ApiU_follow findU_followById(Integer id);

	// 查看数据集
	@Select("SELECT * FROM U_follow")
	public List<ApiU_follow> findU_follows();

	// 添加
	@Insert("INSERT INTO U_FOLLOW (conn_id, type, user_id, add_time) VALUES (#{conn_id}, #{type}, #{user_id}, #{add_time})")
	@Options(useGeneratedKeys = true, keyProperty = "id")
	public int insertU_follow(ApiU_follow u_follow);

	// 修改
	@Update("UPDATE U_FOLLOW SET conn_id = #{conn_id}, type = #{type}, user_id = #{user_id}, add_time = #{add_time} WHERE ID = #{id}")
	public int updateU_follow(ApiU_follow u_follow);

	// 删除
	@Delete("DELETE FROM U_FOLLOW  WHERE ID = #{ID}")
	public int deleteU_follow(Integer id);

	// Foreign keys revelant

	// region Indexs revelant

}
